package com.sheep.opt;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import org.apache.log4j.Logger;

public class OpUpdate {
	private String sql;
	
	public OpUpdate(String sql) {
		this.sql = sql;
	}
	
	public void updateSql(String sql) {
	    this.sql = sql;
	}
	
	public final String getSql() {
		return sql;
	}
	
	public void setParam(PreparedStatement ps) throws SQLException {
	}

	public void log(Logger log) {
		if (log.isDebugEnabled()) {
			log.debug(getSql());
		}
	}
}